Repository navigation
Conversation
jefft72
requested review from
Issacboy123 and
Pepps233
and removed request for
Issacboy123
August 16, 2026 00:11
Issacboy123
force-pushed
the
stack/native-plan-08-routing-api-tests
branch
from
August 16, 2026 03:14
438e857 to
05dcf28
Compare
Expose native plan mode through public exports, CLI parsing, authentication checks, and non-interactive execution.
Pepps233
force-pushed
the
stack/native-plan-08-routing-api-tests
branch
from
August 16, 2026 04:08
05dcf28 to
f6a5651
Compare
Contributor
Author
|
Closing to rebuild on a clean base. This stack does not build. Two separate defects are present, and the first masks the second:
Replacement stacks:
The branch behind this PR is retained unchanged as a backup. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Makes native plan mode available through the supported coding-agent CLI and package interfaces while establishing an explicit interactive-only host boundary.
It also adds runtime-level coverage for accepted-plan routing, including ambiguous profile choices, stale continuation races, harness adoption failures, runtime replacement, and retry behavior.
Reasoning
The earlier plan lifecycle and routing work is not usable by embedders until its artifacts, continuation APIs, selection contracts, and route parser are exported from the public entry points.
At the same time, print, JSON, RPC, export, and authentication flows do not provide the interactive decision UI required to resolve a submitted or accepted plan, so they must reject that state before extensions, prompts, or session replacement can mutate anything.
Accepted-plan handoff crosses several asynchronous boundaries and may replace both the session wrapper and active runtime while retaining one underlying session manager.
Integration tests are needed to prove that the exact continuation remains authoritative through navigation, selection, activation, host rebind failure, disposal, and competing operations.
Changes
--planflag, documents it as interactive-only, and applies the initialplancollaboration mode only when constructing the first interactive runtime.--planfor session export, print, JSON, RPC, and authentication commands before unsupported work begins, while leaving plain runtime metadata commands available./plan [on|off]as a built-in slash-command contract and updates CLI help to clarify how--no-tools, allowlists, denylists, inspection tools, and the intrinsicsubmit_plantool interact.SessionManagerstate before non-interactive runtime and extension initialization, then checks the boundAgentSessionagain before non-interactive prompting.stay, harness switching, pinned profiles, and newly selected profiles bind the expected runtime.Testing
npm run checkpassed.